package com.car.service;

import com.car.pojo.Menu;
import com.car.pojo.Post;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysPostService {
    List<Post> list(Post post, Integer startIndex, Integer pageSize);

    Integer selectSysUserCount(@Param("post") Post post);

    Integer add(Post post);

    int delete(Integer post_id);

    int update(Post post);

    Post getByid(Integer post_id);

    List<Post> selectPostsByPostName(@Param("post_name") String post_name);
}
